const express = require('express')
const router = express.Router()
const { user: userController } = require('../controller')

router.post('/register', userController.register)
router.post('/login', userController.login)
router.get('/', userController.getCurrentUser)
router.post('/add',userController.addFriend)

module.exports = router
